package com.gimi.cloud.jimi.dao.dao.userInfo;

import com.gimi.cloud.jimi.dao.dao.sys.BaseDao;
import com.gimi.cloud.jimi.dao.myMapper.MyMapper;
import com.gimi.cloud.jimi.dto.userInfo.RdTdDTO;
import com.gimi.cloud.jimi.entity.userInfo.RdTd;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RdTdDao extends MyMapper<RdTd>, BaseDao<RdTd, RdTdDTO> {

    @Select("select * from rd_td where user_id = #{userId} and is_delete != 1 order by t_id desc limit 1")
    public RdTd getNewestTd(Integer userId);
}
